home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 666 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. Newsgroups: gnu.misc.discuss,comp.std.c
  3. Subject: Re: Coding Standards are ignorant
  4. Message-ID: <danpop.827967897@rscernix>
  5. From: danpop@mail.cern.ch (Dan Pop)
  6. Date: 27 Mar 96 23:04:57 GMT
  7. References: <4gum82$14v4@info4.rus.uni-stuttgart.de> <4i829o$qbh@usenet.pa.dec.com> 
  8.  <4ikptb$er8@golem.phys.ndsu.NoDak.edu> <root.827268746@rscernix> <4jaeq4$9ig@golem.phys.ndsu.NoDak.edu>
  9. Organization: CERN European Lab for Particle Physics
  10. NNTP-Posting-Host: ues5.cern.ch
  11. X-Newsreader: NN version 6.5.0 #7 (NOV)
  12.  
  13. In <4jaeq4$9ig@golem.phys.ndsu.NoDak.edu> mooney@golem.phys.ndsu.NoDak.edu (Timothy Mooney) writes:
  14.  
  15. >In article <root.827268746@rscernix>, Dan Pop <danpop@mail.cern.ch> wrote:
  16. >>In <4ikptb$er8@golem.phys.ndsu.NoDak.edu> mooney@golem.phys.ndsu.NoDak.edu (Timothy Mooney) writes:
  17. >>
  18. >>>DEC's cc for Digital Unix 3.2 has a -std option, and the man page does
  19. >>>mention the ISO standard.
  20. >>
  21. >>Does it?  Not as far as I can see on my Digital Unix 3.2 box:
  22. >
  23. >You're not looking in the right spot (this is 3.2c):
  24. >
  25. >$uname -s -r
  26. >OSF1 V3.2
  27. >$man cc | grep -i iso
  28. >  _ANSI_C_SOURCE   ISO C and ANSI C
  29. >  standard.  For strict ISO C and ANSI C conformance, the compiler command
  30. >
  31. >Both references are earlier than the section on the arguments and their
  32. >meanings.
  33.  
  34. Let's see:
  35.  
  36. ues5:~/tmp 20> uname -s -r
  37. OSF1 V3.2
  38. ues5:~/tmp 21> man cc | grep -i iso
  39. ues5:~/tmp 22> 
  40.  
  41. Not all 3.2's are born equal :-)  (mine is 3.2a)
  42.  
  43. But I find the 3.2c man page confusing, because it talks about ISO C
  44. and ANSI C as if they were two different standards and not two different
  45. names for one and the same thing.
  46.  
  47. Dan
  48. --
  49. Dan Pop
  50. CERN, CN Division
  51. Email: danpop@mail.cern.ch 
  52. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  53.